import React from 'react';
import { Tag } from 'antd';

const NetworkStatusTag = ({ status }) => {
  const statusConfig = {
    active: { color: 'success', text: '活跃' },
    inactive: { color: 'default', text: '不活跃' },
    pending: { color: 'warning', text: '等待中' }
  };
  
  const config = statusConfig[status] || { color: 'default', text: '未知' };
  
  return <Tag color={config.color}>{config.text}</Tag>;
};

export default NetworkStatusTag;